﻿jQuery(function ($) {
    $('.tile').hover(function () {
        $('.tileCaption', this).stop().animate({ top: '0px' }, { queue: false, duration: 200 });
    }, function () {
        $('.tileCaption', this).stop().animate({ top: '100px' }, { queue: false, duration: 200 });
    });
});

//User Defined Function to Open Dialog Framework
function PromotedLinksDialog(strPageURL) {
    var dialogOptions = SP.UI.$create_DialogOptions();
    dialogOptions.url = strPageURL; // URL of the Page

    SP.UI.ModalDialog.showModalDialog(dialogOptions); // Open the Dialog
    return false;
}